/* eslint-disable no-unused-vars */
import { request, RestfulApi, paramsFilter } from "@/utils/help";

export const Menus = new RestfulApi("menus");
Menus.nav = data => request("menus/nav", paramsFilter(data), "get");
Menus.menus = data => request("menus/menus", paramsFilter(data), "get");
Menus.listMenu = data => request("menus/listMenu", paramsFilter(data), "post");
Menus.delete = data => request("menus/delete", paramsFilter(data), "post");
